﻿var app = angular.module("pizza", []);

app.controller("HomeController", function ($scope) {
    $scope.me = "Eddie";
    $scope.inputs = [];

    $scope.addTask = function() {
        $scope.inputs.push($scope.test);
    }

    $scope.deleteTask = function (delIndex) {
        $scope.inputs.splice(delIndex,1);
    }
    $scope.editTask = function (index, str) {
        $scope.inputs[index] = str;
    }
});
